﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewProductDetails.aspx.cs"
    Inherits="CTEA_INDIA.WebForm1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="~/MenuList.ascx" TagName="Menu" TagPrefix="m1" %>
<%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>All Product</title>
    <link href="CSS/MyStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <uc:header runat="server" ID="aa" />
    </div>
    <div class="toporagne">
         <%--<img src="Images/top_orange-strip.jpg" />--%>
          <hr  size="10" color="#091247" width="900px" />
    </div>
    <div>
        <center>
            <div>
                <table width="1000px" border="0">
                    <tr>
                        <td valign="top" align="center">
                            <table width="900px" border="0" class="MainDiv">
                                <tr>
                                    <td valign="top" width="200px">
                                        <m1:Menu runat="server" ID="menu" />
                                    </td>
                                    <td valign="top">
                                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upPnlCandidate">
                                            <ProgressTemplate>
                                                <center>
                                                    <div id="pageLoading">
                                                        <center>
                                                            <img src="Images/loading123.gif" style="z-index: 5000; top: 50%; left: 50%; position: absolute;"
                                                                alt="loading" />
                                                            <div style="color: White; font-size: 18px; top: 50%; left: 50%;">
                                                                Loading...
                                                            </div>
                                                        </center>
                                                        <div id="transparentBg" class="transparentBg">
                                                        </div>
                                                    </div>
                                                </center>
                                            </ProgressTemplate>
                                        </asp:UpdateProgress>
                                        <asp:UpdatePanel ID="upPnlCandidate" runat="server">
                                            <ContentTemplate>
                                                <table border="0" width="100%">
                                                    <tr>
                                                        <td class="myaccount">
                                                            <asp:Label ID="Label1" runat="server" Text="Product Detail" CssClass="headingpage"></asp:Label><br />
                                                            <div class="imgstrip">
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="top" width="400px" align="center">
                                                            <asp:GridView ID="gdProductDetail" runat="server" Width="100%" DataKeyNames="ProductID"
                                                                CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" AutoGenerateColumns="False"
                                                                EmptyDataText="No data found." Style="margin-right: 0px">
                                                                <AlternatingRowStyle BackColor="White" />
                                                                <Columns>
                                                                    <asp:BoundField HeaderText="ProductName" DataField="ProductName" ItemStyle-Width="120px">
                                                                        <ItemStyle Width="200px" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="ProducerName" DataField="ProducerName" ItemStyle-Width="200">
                                                                        <ItemStyle Width="200px" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="DirectorName" DataField="DirectorName" ItemStyle-Width="80">
                                                                        <ItemStyle Width="80px" />
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Refference" DataField="Refference" ItemStyle-Width="80">
                                                                        <ItemStyle Width="120px" />
                                                                    </asp:BoundField>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkView" runat="server" Text="View" ForeColor="#0066FF" ItemStyle-Width="10"
                                                                                OnClick="lnkView_Click" CausesValidation ="false"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkEdit" runat="server" Text="Edit" ForeColor="#0066FF" ItemStyle-Width="10"
                                                                                OnClick="lnkEdit_Click"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lnkDelete" runat="server" Text="Delete" ForeColor="#0066FF" ItemStyle-Width="10" OnClick="lnkDelete_Click"></asp:LinkButton>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <EditRowStyle BackColor="#2461BF" />
                                                                <EmptyDataRowStyle CssClass="errorSpan" Font-Bold="True" Font-Size="15pt" ForeColor="Red" />
                                                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="white" />
                                                                <PagerStyle ForeColor="White" HorizontalAlign="Center" BackColor="#2461BF" />
                                                                <RowStyle BackColor="#EFF3FB" />
                                                                <SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True" />
                                                                <AlternatingRowStyle BackColor="#AAD0FC" />
                                                                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                                                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                                                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                                                <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                                            </asp:GridView>

                                                              <asp:LinkButton ID="lnkViewpro" runat="server" ForeColor="#0066FF"></asp:LinkButton>
                                                            <asp:ModalPopupExtender ID="lnkView_ModalPopupExtender" runat="server" TargetControlID="lnkViewpro"
                                                                CancelControlID="cancelBtnView" PopupControlID="pnlLnkView" BackgroundCssClass="modalBackground">
                                                            </asp:ModalPopupExtender>
                                                            <asp:Panel ID="pnlLnkView" runat="server">
                                                                <table width="400px" class="ModalPopup" border="0" cellpadding="3" cellspacing="2"
                                                                    style="margin-left: 50px">
                                                                    <tr>
                                                                        <td colspan="4">
                                                                            <div style="float: right">
                                                                                <img src="Images/newsletter_close.PNG" alt="close" runat="server" id="cancelBtnView" /></div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4" class="gdheading">
                                                                            Product Detail
                                                                            <hr />
                                                                        </td>
                                                                    </tr>
                                                                    <tr id="tr1" runat="server">
                                                                        <td class="Label modalCandidate">
                                                                            Product Name:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <asp:Label ID="lblProductName" runat="server"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr id="trProducerName" runat="server">
                                                                        <td class="Label modalCandidate">
                                                                            Producer Name:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <asp:Label ID="lblProducterName" runat="server"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr id="trDirectorName" runat="server">
                                                                        <td class="Label modalCandidate">
                                                                            Director Name:
                                                                        </td>
                                                                        <td class="Label">
                                                                            <asp:Label ID="lblDirectorName" runat="server"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr id="Refference" runat="server">
                                                                        <td class="Label modalCandidate">
                                                                            Refference:
                                                                        </td>
                                                                        <td class="modalCandidate">
                                                                            <asp:Label ID="lblRef" runat="server"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4">
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </asp:Panel>
                                                            <asp:LinkButton ID="lnkHidden" runat="server" ForeColor="#0066FF"></asp:LinkButton>
                                                            <asp:ModalPopupExtender ID="lnkEdit_ModalPopupExtender" runat="server" TargetControlID="lnkHidden"
                                                                CancelControlID="cancelBtnEdit" PopupControlID="pnlLnkEdit" BackgroundCssClass="modalBackground">
                                                            </asp:ModalPopupExtender>
                                                            <asp:Panel ID="pnlLnkEdit" runat="server">
                                                                <table width="500px" class="ModalPopup">
                                                                    <tr>
                                                                        <td colspan="4">
                                                                            <div style="float: right">
                                                                                <img src="Images/newsletter_close.PNG" alt="close" runat="server" id="cancelBtnEdit" /></div>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4" class="gdheading">
                                                                            Update Product Detail
                                                                            <asp:Label ID="lblPorductID" runat="server" Visible ="false" ></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4" class="style1">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label">
                                                                            ProductName:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtProductName" runat="server"></asp:TextBox>
                                                                        </td>
                                                                        <td class="Label">
                                                                            ProducerName:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtProducerName" runat="server"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="Label">
                                                                            DirectorName:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtDirectorName" MaxLength="10" runat="server"></asp:TextBox>
                                                                        </td>
                                                                        <td class="Label">
                                                                            Refference:
                                                                        </td>
                                                                        <td>
                                                                            <asp:TextBox ID="txtRefference" runat="server"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4" align="center">
                                                                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                                                <ContentTemplate>
                                                                                    <asp:Button ID="btnUpdate" runat="server" CssClass="btnsubmit" Text="Update" Height="26px"  OnClick ="btnUpdate_Click"/>
                                                                                </ContentTemplate>
                                                                                <Triggers>
                                                                                    <asp:PostBackTrigger ControlID="btnUpdate" />
                                                                                </Triggers>
                                                                            </asp:UpdatePanel>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </center>
    </div>
    <div>
    </div>
    </form>
</body>
</html>
